<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <css file="__PUBLIC__/css/base.css"/>
        <link type="text/css" href="__ROOT__/data/ui/css/flick/jquery-ui-1.8.23.custom.css" rel="stylesheet" />
		<link type="text/css" href="__ROOT__/data/datepicker/zebra_datepicker.css" rel="stylesheet" />
        <script type="text/javascript" src="__ROOT__/data/ui/js/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="__ROOT__/data/ui/js/jquery-ui-1.8.23.custom.min.js"></script>
		<script type="text/javascript" src="__ROOT__/data/Validform_v5.1_min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/validate.js"></script>
		<script type='text/javascript' src='__DATA__/datepicker/zebra_datepicker.js'></script>
		<script type="text/javascript">
            $(function(){
                $("#tabs").tabs();
            });
			
			$(function(){
				$('#jiancheng').Zebra_DatePicker({
				    view: 'years'
				});
			});
        </script>
    </head>
    <body>
        <div class="now_path">
            <strong>您现在的位置：</strong>
            <a href="#">房屋管理</a><span>></span>
            <a href="__WEB__/admin/news/add_news_show">增加小区</a>
        </div>
        <div id="tabs" style="width:100%">
            <ul>
                <li><a href="#tabs-1">添加小区</a></li>
				<li><a href="#tabs-2">小区周边</a></li>
				<li><a href="#tabs-3">小区信息</a></li>
            </ul> 
			<form action="__CONTROL__/add_exe" method="post" class='tujia'>
            <div id="tabs-1">
                <table class="table2">
                    <tr>
                        <th>小区名称：</th>
                        <td><input  style=' float:left; display:block;' type="text" name="qname" style="width:360px;"  nullmsg="请输入小区名称！" datatype='*'/>
						<span class="Validform_checktip l"></span>
						</td>
                    </tr>
					<tr>
                        <th>选择城市：</th>
                        <td>
                        	<select name='cid' errormsg='请选择城市' datatype='*' style=' float:left; display:block;'>
                        		<option value=''>==请选择城市==</option>
								<foreach from='$citys' value='$v'>
									<if value='isset($hd.get.cid) && !empty($hd.get.cid) && $hd.get.cid eq $v.cid'>
										<option value='{$hd.get.cid}' selected='selected' >=>{$v.cname}</option>
									<else />
										<option value='{$v.cid}' >=>{$v.cname}</option>
									</if>
								</foreach>
                        	</select>
							<span class='Validform_checktip'></span>
						</td>
                    </tr>
					<tr>
                        <th>小区设施：</th>
                        <td>
                        	<a href='__CONTROL__/sheshi_add_show' target='_blank' style=' text-decoration:underline; padding:0 10px;'>增加设施</a>
							<foreach from='$sheshi_row' value='$v'>
                        		<label><input type='checkbox' name='sheshi[]' value='{$v.sname}' />{$v.sname}&nbsp;</label>
							</foreach>
                        </td>
                    </tr>
					<tr>
                        <th>设施描述：</th>
                        <td><textarea name='sheshi_desc' style='width:80%; height:60px;'></textarea></td>
                    </tr>
                    <tr>
                        <th>小区介绍：</th>
                        <td><editor name="info" max='20000' height='250' style='1'/></td>
                    </tr>
					<tr>
                        <th>小区状态：</th>
                        <td>
                        	<input type='radio' name='status' value='1' checked='checked'/>启用
							<input type='radio' name='status' value='0'/>禁止
                        </td>
                    </tr>
                </table>
            </div>
			<div id="tabs-2">
				<table class='table2'>
					<tr>
						<td>小区周边介绍</td>
						<td>
							<editor name="zhoubian" max='20000' height='300' style='1'/>
						</td>
					</tr>
				</table>
			</div>
			<div id="tabs-3">
				<table class='table2'>
					<tbody>
					<tr>
						<th>建成年份:</th>
						<td><div style='position:relative;'><input type="text"  name="jiancheng" style="width:300px; display:block; float:left;" id="jiancheng">
						</div></td>
					</tr>
					<tr>
						<th>绿化率(数字):</th>
						<td><input type="text" style=' display:block; float:left;width:300px;' name="lvhua"  errormsg='请输入数字' datatype='n'/>
						<span class='Validform_checktip'></span>
						</td>
					</tr>
					<tr>
						<th>开发商:</th>
						<td><input type="text" name="kaifa" style="width:300px;"/></td>
					</tr>
					<tr>
						<th>物业公司:</th>
						<td><input type="text" name="wuye" style="width:300px;"/></td>
					</tr>
					<tr>
						<th>停车费(数字):</th>
						<td><input type="text" name="tingche" style="width:300px; display:block; float:left;"   errormsg='请输入数字' datatype='n'/>
						<span class='Validform_checktip'></span>
						</td>
					</tr>
					</tbody>
				</table>
			</div>
			<input type="submit" class="submit" value="添加小区" name='submit'/>
			</form>
        </div>
    </body>
</html>
